package com.mrogrape.notepad.ui.library;

import java.io.File;


public class FileInclusionNode extends InclusionNode{

	/** serialVersionUID */
	private static final long serialVersionUID = 1L;

	public FileInclusionNode(Inclusion inclusion) {
		super(inclusion);

		if(!Inclusion.FILE.equalsIgnoreCase(inclusion.getType())){
			throw new IllegalArgumentException("FileInclusionNode must receive a inclusion object with 'file' type");
		}
	}

	public File getFile(){

		return new File(super.getInclusion().getHref());
	}
}
